import request from '@/utils/request'

// 查询终端注册列表
export function listTerminal(query) {
  return request({
    url: '/basicInformation/terminal/list',
    method: 'get',
    params: query
  })
}

// 查询终端注册详细
export function getTerminal(id) {
  return request({
    url: '/basicInformation/terminal/' + id,
    method: 'get'
  })
}

// 新增终端注册
export function addTerminal(data) {
  return request({
    url: '/basicInformation/terminal',
    method: 'post',
    data: data
  })
}

// 修改终端注册
export function updateTerminal(data) {
  return request({
    url: '/basicInformation/terminal',
    method: 'put',
    data: data
  })
}
// 删除终端注册
export function delTerminal(id) {
  return request({
    url: '/basicInformation/terminal/' + id,
    method: 'delete'
  })
}

// 导出终端注册
export function exportTerminal(query) {
  return request({
    url: '/basicInformation/terminal/export',
    method: 'get',
    params: query
  })
}

// 查询船舶信息列表
export function terminalInlineStatistics(query) {
  return request({
    url: '/basicInformation/terminal/terminalInlineStatistics',
    method: 'get',
    params: query
  })
}

export function terminalInlineChildrenStatistics(query) {
  return request({
    url: '/basicInformation/terminal/terminalInlineChildrenStatistics',
    method: 'get',
    params: query
  })
}

export function terminalOnlineRate(query) {
  return request({
    url: '/basicInformation/terminal/terminalOnlineRate',
    method: 'get',
    params: query
  })
}
export function listTouristCurrentPoint() {
  return request({
    url: '/basicInformation/terminal/listTouristCurrentPoint',
    method: 'get'
  })
}
